<g:javascript src="jquery/jquery.modaldialog.js"/>
<script language="JavaScript">
<!--
$(function(){
    $(".showAttachment").live("click", function(){   
        modalDialog("<div style='text-align:center;vertical-align:middle;margin:auto'><img src='/cloud/download/index/"+ $(this).parent().attr('id') +"?errorAction=show&errorController=articleAjax'></div>");
    });
});
//-->
</script>